package pl.th.permission.plugin.node.annotation;

public enum AnnType {

    NEED_PERMISSION("@NeedPermission"),
    ON_ALL_PERMISSION_GRANTED("@OnAllPermissionsGranted"),
    ON_ALL_PERMISSION_DENIED("@OnAllPermissionsDenied"),
    ON_ANY_PERMISSION_GRANTED("@OnAnyPermissionsGranted"),
    ON_ANY_PERMISSION_DENIED("@OnAnyPermissionsDenied"),
    ON_DENIED_CALLBACK("@OnDeniedCallback"),
    ON_GRANTED_CALLBACK("@OnGrantedCallback"),
    ON_PERMISSION_DENIED("@OnPermissionDenied"),
    ON_PERMISSION_GRANTED("@OnPermissionGranted");

    private final String name;

    AnnType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return name;
    }
}
